﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZhimeiSoft.CharmManager.DOL;
using System.Data;

namespace ZhimeiSoft.CharmManager.Interface
{
    public interface IBusinessService
    {
        #region 员工信息

        /// <summary>
        /// 新增员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param> 
        /// <returns>员工ID</returns>
        bool InsertEmployee(DBEntityEmployee employee, out string error);
        /// <summary>
        /// 更新员工信息
        /// </summary>
        /// <param name="employee">员工信息实体类</param>
        bool UpdateEmployee(DBEntityEmployee employee, out string error);
        /// <summary>
        /// 删除员工信息
        /// </summary>
        /// <param name="employeeid">员工ID</param>
        bool DeleteEmployee(int employeeid, out string error);
        /// <summary>
        /// 根据员工状态查询员工信息
        /// </summary>
        /// <param name="state">状态F0E 在职、 F0Q 离职、 F0S停岗</param>
        /// <param name="dsEmployeeData">返回员工数据</param>
        /// <param name="error">错误信息</param>
        /// <returns>返回是否成功</returns>
        bool QueryEmployeeState(string state, out DataSet dsEmployeeData, out string error);
        /// <summary>
        /// 根据条件过滤员工信息
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        bool QeuryEmployeeFilter(string filter, out DataSet dsEmployee, out string error);
        #endregion

        #region  员工假期

        /// <summary>
        /// 插入员工休假记录
        /// </summary>
        /// <param name="employeeVacation"></param>
        /// <returns></returns>
        bool InsertEmployeeVacation(DBEntityEmoloyeeVacation employeeVacation, out string error);
        /// <summary>
        /// 删除员工休假记录
        /// </summary>
        /// <param name="employeeVacation"></param>
        /// <returns></returns>
        bool DelEmployeeVacation(DBEntityEmoloyeeVacation employeeVacation, out string error);
        /// <summary>
        /// 更新员工休假记录
        /// </summary>
        /// <param name="employeeVacation"></param>
        /// <returns></returns>
        bool UpdateEmployeeVacation(DBEntityEmoloyeeVacation employeeVacation_old, DBEntityEmoloyeeVacation employeeVacation_new, out string error);
        /// <summary>
        /// 根据开始时间查询员工休假记录
        /// </summary>
        /// <param name="startDate">开始时间</param>
        /// <param name="endDate">结束时间</param>
        /// <param name="dsEmployeeVacation">返回数据</param>
        /// <param name="error">错误信息</param>
        /// <returns>返回是否成功</returns>
        bool QueryEmployeeVacationDateTime(string startDate, string endDate, out DataSet dsEmployeeVacation, out string error);
        /// <summary>
        /// 根据起始时间和员工ID
        /// </summary>
        /// <param name="employeeID">员工ID</param>
        /// <param name="startDate">开始时间</param>
        /// <param name="endDate">结束时间</param>
        /// <param name="dsEmployeeVacation">返回数据</param>
        /// <param name="error">错误信息</param>
        /// <returns></returns>
        bool QueryEmployeeVacationEmployeeID(int employeeID, string startDate, string endDate, out DataSet dsEmployeeVacation, out string error);
        /// <summary>
        /// 根据当天返回休假中的员工
        /// </summary>
        /// <param name="vacationDate">当前日期</param>
        /// <param name="state">休假状态</param>
        /// <param name="dsEmployeeVacation">返回数据集</param>
        /// <param name="error">错误信息</param>
        /// <returns></returns>
        bool QueryEmployeeVacationDay(string vacationDate, string state, out DataSet dsEmployeeVacation, out string error);


        #endregion

        #region 店信息

        /// <summary>
        /// 返回店信息
        /// </summary>
        /// <param name="dsSalonInfo">店信息数据集</param>
        /// <param name="error">返回错误信息</param>
        /// <returns>是否成功</returns>
        bool QuerySalonInfo(out DataSet dsSalonInfo, out string error);

        #endregion

        #region 客户信息

        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="customer"></param>
        /// <returns></returns>
        bool InsertCustomer(DBEntityCustomInfo customer, out string error);

        /// <summary>
        /// 修改客户信息
        /// </summary>
        /// <param name="customer"></param>
        bool UpdateCustomer(DBEntityCustomInfo customer, out string error);

        /// <summary>
        /// 删除客户信息
        /// </summary>
        /// <param name="customerID"></param>
        bool DeleteCustomer(int customerID, out string error);
        /// <summary>
        /// 根据用户状态获取信息
        /// </summary>
        /// <param name="sateStr">状态字符串</param>
        /// <returns>返回数据</returns>
        bool QueryCustomState(string stateStr, out DataSet dsCustomInfo, out string error);
        /// <summary>
        /// 根据用户ID获取用户信息
        /// </summary>
        /// <param name="customerID">用户ID</param>
        /// <param name="dsCustomInfo">返回用户数据</param>
        /// <param name="error">错误信息</param>
        /// <returns>是否成功</returns>
        bool QueryCustomerID(int customerID, out DataSet dsCustomInfo, out string error);
        /// <summary>
        /// 根据会员姓名查询信息
        /// </summary>
        /// <param name="customName"></param>
        /// <returns></returns>
        bool QueryCustomName(string customName, out DataSet dsCustomInfo, out string error);

        #endregion

        #region 预约管理
        /// <summary>
        /// 插入会员预约记录
        /// </summary>
        /// <param name="scheduleInfo">信息类</param>
        bool InsertScheduleCustom(DBEntitySchedule scheduleInfo, DBEntityScheduleCustom scheduleCustom, out string error);
        /// <summary>
        /// 删除一条会员预约记录
        /// </summary>
        /// <param name="scheduleInfo">信息类</param>
        bool DeleteScheduleCustom(DBEntitySchedule scheduleInfo, DBEntityScheduleCustom scheduleCustom, out string error);
        /// <summary>
        /// 更新一条会员预约记录
        /// </summary>
        /// <param name="scheduleInfo">信息类</param>
        bool UpdateScheduleCustom(DBEntitySchedule scheduleInfo, DBEntityScheduleCustom scheduleCustomOld,
            DBEntityScheduleCustom scheduleCustomNew, out string error);
        /// <summary>
        /// 按照预约状态获取记录
        /// </summary>
        /// <param name="scheduleState">预约状态</param>
        /// <returns>返回数据</returns>
        bool QueryScheduleState(string scheduleState, out DataSet dsSchedule, out string error);
        /// <summary>
        /// 根据用户ID获取提醒信息
        /// </summary>
        /// <param name="customerID">用户ID</param>
        /// <param name="scheduleState">提醒状态</param>
        /// <returns></returns>
        bool QueryScheduleCustomID(int customerID, string scheduleState, out DataSet dsSchedule, out string error);
        /// <summary>
        /// 根据用户ID以及当前时间查询提醒信息.
        /// </summary>
        /// <param name="customerID">用户ID</param>
        /// <param name="currTime">当前时间</param>
        /// <param name="dsSchedule">提醒数据集</param>
        /// <param name="error">错误信息</param>
        /// <returns>返回是否成功</returns>
        bool QueryScheduleCustomDateTime(int customerID, DateTime currTime, out DataSet dsSchedule, out string error);
        /// <summary>
        /// 根据月份查询预约记录
        /// </summary>
        /// <param name="queryYear">查询年</param>
        /// <param name="queryMonth">查询月</param>
        /// <returns></returns>
        bool QueryScheduleMonth(int queryYear, int queryMonth, out DataSet dsSchedule, out string error);
        /// <summary>
        /// 根据日查询预约记录
        /// </summary>
        /// <param name="queryYear">年</param>
        /// <param name="queryMonth">月</param>
        /// <param name="queryDay">日</param>
        /// <returns></returns>
        bool QueryScheduleDay(int queryYear, int queryMonth, int queryDay, out DataSet dsSchedule, out string error);
        #endregion

        #region 新预约管理
        /// <summary>
        /// 增加预约信息
        /// </summary>
        bool AddResveration(DBEntityReservation reservatioinInfo, DataSet dsReservationServiceItem, out string error);
        /// <summary>
        /// 修改预约信息
        /// </summary>
        /// <param name="reservatioinInfo"></param>
        /// <param name="dsReservationServiceItem"></param>
        bool UpdateReservation(DBEntityReservation reservatioinInfo, DataSet dsReservationServiceItem, out string error);
        /// <summary>
        /// 根据年月查询预约信息
        /// </summary>
        /// <param name="queryYear">年</param>
        /// <param name="queryMonth">月</param>
        /// <param name="dsReservation">预约信息</param>
        /// <param name="error">错误信息</param>
        /// <returns></returns>
        bool QueryReservationMonth(int queryYear, int queryMonth, string state, out DataSet dsReservation, out string error);
        /// <summary>
        /// 根据信息查询预约ＩＤ
        /// </summary>
        /// <param name="reservatioinInfo"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool QueryResverationID(DBEntityReservation reservatioinInfo, out string error);
        /// <summary>
        /// 获取预约信息
        /// </summary>
        /// <param name="queryYear">查询年</param>
        /// <param name="queryMonth">查询月</param>
        /// <param name="queryDay">查询日</param>
        /// <param name="stateStr">预约状态</param>
        /// <returns></returns>
        bool QueryResveration(int queryYear, int queryMonth, int queryDay, string stateStr, out DataSet dsReservation, out string error);
        /// <summary>
        /// 获取员工预约信息
        /// </summary>
        /// <param name="queryYear">查询年</param>
        /// <param name="queryMonth">查询月</param>
        /// <param name="queryDay">查询日</param>
        /// <param name="employeeID">员工ID</param>
        /// <param name="stateStr">预约状态</param>
        /// <returns></returns>
        bool QueryReservationEmployee(int queryYear, int queryMonth, int queryDay, int employeeID, string stateStr, out DataSet dsReservationEmployee, out string error);
        /// <summary>
        /// 根据预约ID查询对应的服务项目
        /// </summary>
        /// <param name="reservationID"></param>
        /// <returns></returns>
        bool QueryReservationServiceItem(int reservationID, out DataSet dsReservationServiceItem, out string error);
        /// <summary>
        /// 根据时间和会员查询预约
        /// </summary>
        /// <param name="querYear">年</param>
        /// <param name="queryMonth">月</param>
        /// <param name="queryDay">日</param>
        /// <param name="customID">会员ID</param>
        /// <param name="dsReservation">返回查询结果</param>
        /// <param name="error">错误信息</param>
        /// <returns></returns>
        bool QueryReservationCustom(int queryYear, int queryMonth, int queryDay, int customID, out DataSet dsReservation, out string error);
        /// <summary>
        /// 计算下一次的预约时间
        /// </summary>
        /// <param name="customerServiceItemID">预约的项目ID</param>
        /// <param name="iday">返回下一次的预约天数</param>
        bool ComputerNextReservation(int customerServiceItemID, out int iday, out string error);
        /// <summary>
        /// 查询会员卡项预约情况
        /// </summary>
        /// <param name="customID">会员ID</param>
        /// <param name="customServiceItemID">会员服务项目ID</param>
        /// <returns></returns>
        bool QeuryReservationCustomServiceItem(int customID, int customServiceItemID, out DataSet dsReservation, out string error);

        /// <summary>
        /// 根据主表的状态获取明细数据
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        bool QueryReservationServiceItemForReservationState(string state, out DataSet dsReservationServiceItem, out string error);
        /// <summary>
        /// 查询会员卡预约情况
        /// </summary>
        /// <param name="filter"></param>
        /// <returns></returns>
        bool QueryReservationCustomServiceItemFilter(string filter, out DataSet dsCustomServiceItem, out string error);

        /// <summary>
        /// 根据预约ID查询详细项目
        /// </summary>
        /// <param name="reservationID">预约ＩＤ</param>
        /// <returns></returns>
        bool QueryReservationServiceItemDetail(int reservationID, out DataSet dsReservationServiceItem, out string error);
        /// <summary>
        /// 预约项目调整
        /// </summary>
        /// <param name="ajdustReservationID">当前调整的预约项目ID</param>
        /// <param name="adjustDateTime">预约调整后的时间</param>
        /// <param name="customServiceItemID">要调整的时间</param>
        /// <param name="customID">会员</param>
        bool AdjustReservationCustomServiceItem(int reservationID, DateTime adjustDateTime, int customServiceItemID, int customID, out string error);
        /// <summary>
        /// 预约调整
        /// </summary>
        /// <param name="entityReservation"></param>
        bool AdjustReservation(DBEntityReservation entityReservation, int reservationEmployeeID, out string error);
        /// <summary>
        /// 调整预约时间
        /// </summary>
        /// <param name="reservationID"></param>
        bool AdjstReservationCurrTime(DBEntityReservation reservationInfo, out string error);
        /// <summary>
        /// 更新预约状态
        /// </summary>
        /// <param name="reservationID"></param>
        /// <param name="customServiceItemID"></param>
        /// <param name="state"></param>
        bool UpdateReservationCustomServiceItemState(int reservationID, int customServiceItemID, int employeeID, string state, out string error);
        /// <summary>
        /// 更新过期的预约状态
        /// </summary>
        /// <param name="error">错误信息</param>
        /// <returns></returns>
        bool CheckAllReservationState(out string error);
        /// <summary>
        /// 刷新预约项目的提示
        /// </summary>
        /// <param name="reservationInfo"></param>
        bool refershReservationToDoList(DBEntityReservation reservationInfo, out string error);
        /// <summary>
        /// 查询会员预约情况
        /// </summary>
        /// <param name="customID">会员ID</param>
        /// <param name="queryYear">查询年</param>
        /// <param name="queryMonth">查询月</param>
        /// <returns></returns>
        bool QueryCustomReservation(int customID, int queryYear, int queryMonth, out DataSet DataSet, out string error);
        #endregion

        #region 服务项目管理
        #region 服务项目分类
        /// <summary>
        /// 添加服务项目分类
        /// </summary>
        /// <param name="category"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool InsertServiceItemCategory(DBEntityServiceItemCategory category, out string error);

        /// <summary>
        /// 修改服务项目分类
        /// </summary>
        /// <param name="category"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool UpdateServiceItemCategory(DBEntityServiceItemCategory category, out string error);

        /// <summary>
        /// 删除服务项目分类
        /// </summary>
        /// <param name="categoryid"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool DeleteServiceItemCategory(int categoryid, out string error);

        /// <summary>
        /// 根据查询条件获取服务项目分类
        /// </summary>
        /// <param name="sFilter"></param>
        /// <param name="dsCategory"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool QueryServiceItemCategory(string sFilter, out DataSet dsCategory, out string error);
        #endregion

        #region 服务项目
        /// <summary>
        /// 添加服务项目信息
        /// </summary>
        /// <param name="serviceItem"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool InsertServiceItem(DBEntityServiceItem serviceItem, out string error);

        /// <summary>
        /// 更新服务项目信息
        /// </summary>
        /// <param name="serviceItem"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool UpdateServiceItem(DBEntityServiceItem serviceItem, out string error);

        /// <summary>
        /// 设置服务项目状态
        /// </summary>
        /// <param name="serviceItemID"></param>
        /// <param name="sState"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool SetServiceItemState(int serviceItemID, string sState, out string error);

        /// <summary>
        /// 根据查询条件获取服务项目信息
        /// </summary>
        /// <param name="sFilter"></param>
        /// <param name="dsServiceItem"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool QueryServiceItem(string sFilter, out DataSet dsServiceItem, out string error);
        #endregion

        #region 服务项目明细
        /// <summary>
        /// 根据服务项目ID获取服务项目明细信息
        /// </summary>
        /// <param name="iServiceItemID"></param>
        /// <returns></returns>
        bool QueryServiceItemDetail(int iServiceItemID, out DataSet ds, out string error);

        /// <summary>
        /// 提交服务项目明细信息数据
        /// </summary>
        /// <param name="ds"></param>
        bool SubmitServiceItmeDetail(DataSet ds, out string error);

        /// <summary>
        /// 根据服务项目ID删除服务项目明细信息
        /// </summary>
        /// <param name="iServiceItemID"></param>
        bool DeleteServiceItemDetail(int iServiceItemID, out string error);

        /// <summary>
        /// 新增服务项目明细信息
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool InsertServiceItemDetail(DBEntityServiceItemDetail entity, out string error);

        /// <summary>
        /// 修改服务项目明细信息
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool UpdateServiceItemDetail(DBEntityServiceItemDetail entity, out string error);

        /// <summary>
        /// 根据服务项目明细ID删除服务项目明细信息
        /// </summary>
        /// <param name="detailID"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool DeleteServiceItemDetailById(int detailID, out string error);
        #endregion

        #region 会员服务项目信息
        /// <summary>
        /// 插入会员服务项目信息
        /// </summary>
        /// <param name="csi">会员服务项目信息类</param>
        bool InsertCustomerServiceItem(DBEntityCustomerServiceItem csi, out string error);

        /// <summary>
        /// 更新会员服务项目信息
        /// </summary>
        /// <param name="csi">会员服务项目信息类</param>
        bool UpdateCustomerServiceItem(DBEntityCustomerServiceItem csi, out string error);

        /// <summary>
        /// 删除会员服务项目信息
        /// </summary>
        /// <param name="iCustomerServiceItemID">会员服务项目ID</param>
        bool DeleteCustomerServiceItem(int iCustomerServiceItemID, out string error);

        /// <summary>
        /// 查询会员服务项目信息
        /// </summary>
        /// <param name="sFilter">过滤条件</param>
        /// <returns>会员服务项目信息数据集</returns>
        bool QueryCustomerServiceItem(string sFilter, out DataSet ds, out string error);
        #endregion

        #region 会员服务项目明细信息
        /// <summary>
        /// 增加会员服务项目明细信息
        /// </summary>
        /// <param name="detail"></param>
        bool InsertCustomerServiceItemReservationTime(DBEntityCustomerServiceItemReservationTime detail, out string error);

        /// <summary>
        /// 更新会员服务项目明细信息
        /// </summary>
        /// <param name="detail"></param>
        bool UpdateCustomerServiceItemReservationTime(DBEntityCustomerServiceItemReservationTime detail, out string error);

        /// <summary>
        /// 删除会员服务项目明细信息
        /// </summary>
        /// <param name="sFilter"></param>
        bool DeleteCustomerServiceItemReservationTime(string sFilter, out string error);

        /// <summary>
        /// 获取会员服务项目明细信息
        /// </summary>
        /// <param name="sFilter"></param>
        /// <returns></returns>
        bool QueryCustomerServiceItemReservationTime(string sFilter, out DataSet dsDetail, out string error);


        /// <summary>
        /// 提交服务项目明细信息数据
        /// </summary>
        /// <param name="ds"></param>
        bool SubmitCustomerServiceItmeReservationTime(DataSet ds, out string error);
        #endregion

        /// <summary>
        /// 会员服务扣减
        /// </summary>
        /// <param name="customServiceItemID">服务项目ID</param>
        /// <param name="minusRemain">扣减次数</param>
        /// <param name="lastServiceTime">服务时间</param>
        /// <param name="cMemo">说明</param>
        /// <param name="employeeID">员工ID</param>
        /// <returns></returns>
        bool CompleteCustomServiceItem(int customServiceItemID, int minusRemain, string lastServiceTime,
            string cMemo, string employeeID, DBEntityCustomerServiceItem customerServiceItem, int reservationID, out string error);

        /// <summary>
        /// 根据用户疗程项目查询消费记录
        /// </summary>
        /// <param name="customServiceItemID"></param>
        /// <returns></returns>
        bool QueryCustomServiceItemConsume(int customServiceItemID, out DataSet dsServiceItemConsume, out string error);
        /// <summary>
        /// 根据用户预约记录查询扣减次数
        /// </summary>
        /// <param name="customServiceItemID"></param>
        /// <returns></returns>
        bool QeuryCustomServiceItemConsumeReservationID(int reservationID, out DataSet dsServiceItemConsume, out string error);

        /// <summary>
        /// 检车是否能够删除会员服务项目
        /// </summary>
        /// <param name="error"></param>
        /// <returns></returns>
        bool CheckDeleteCustomServiceItem(int customServiceItemID, out string error);
        #endregion

        #region 代办事项
        /// <summary>
        /// 插入一个代办事项
        /// </summary>
        /// <param name="todoListInfo">信息类</param>
        bool InsertToDoList(DBEntityToDoList todoListInfo, out string error);
        /// <summary>
        /// 插入一个待办事项，并且和预约关联
        /// </summary>
        /// <param name="todoListInfo"></param>
        /// <param name="reservationToDoListInfo"></param>
        bool InsertResverationToDoList(DBEntityToDoList todoListInfo, DBEntityReservationToDoList reservationToDoListInfo, out string error);
        /// <summary>
        /// 修改一个代办事项
        /// </summary>
        /// <param name="todoListInfo">代办事项</param>
        bool UpdateToDoList(DBEntityToDoList todoListInfo, out string error);
        /// <summary>
        /// 删除一个代办事项
        /// </summary>
        /// <param name="todoListID">待办事项ＩＤ</param>
        bool DeleteToDoList(int todoListID, out string error);
        /// <summary>
        /// 删除预约与待办事项对应表
        /// </summary>
        /// <param name="reservationToDoListInfo"></param>
        bool DeleteResverationToDoList(DBEntityReservationToDoList reservationToDoListInfo, out string error);
        /// <summary>
        /// 根据时间状态获取代办事项
        /// </summary>
        /// <param name="startDate"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        bool GetStateToDoList(DateTime startDate, string state, out DataSet dsToDoList, out string error);
        /// <summary>
        /// 根据过滤条件获取代办事项信息
        /// </summary>
        /// <param name="sFilter"></param>
        /// <param name="dsTodoList"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool QueryTodoList(string sFilter, out DataSet dsTodoList, out string error);
        /// <summary>
        /// 标记待办事项完成
        /// </summary>
        /// <param name="todoListID"></param>
        /// <param name="error"></param>
        /// <returns></returns>
        bool MarkTodoListCompleted(int todoListID, out string error);

        /// <summary>
        /// 检查是否存在过期代办事宜，如果存在，把这些代办事宜的状态改为已过期
        /// </summary>
        /// <returns></returns>
        bool CheckAllExpiredTodoState(out string error);

        /// <summary>
        /// 根据todolistID查询预约
        /// </summary>
        /// <param name="todoListID"></param>
        /// <returns></returns>
        bool QueryReservationForToDoListID(int todoListID, out DataSet dsReservation, out string error);
        #endregion

        #region 会员回访

        /// <summary>
        /// 新增会员回访信息
        /// </summary>
        /// <param name="visit">回访信息类</param>
        bool InsertCustomerReturnVisit(DBEntityCustomerReturnVisit visit, out string error);

        /// <summary>
        /// 更新会员回访信息
        /// </summary>
        /// <param name="visit">回访信息类</param>
        bool UpdateCustomerReturnVisit(DBEntityCustomerReturnVisit visit, out string error);

        /// <summary>
        /// 删除会员回访信息
        /// </summary>
        /// <param name="visitID"></param>
        bool DeleteCustomerReturnVisit(int visitID, out string error);

        /// <summary>
        /// 获取会员回访信息
        /// </summary>
        /// <param name="sFilter">过滤条件</param>
        /// <returns>回访信息数据集</returns>
        bool QueryCustomerReturnVisit(string sFilter, out DataSet ds, out string error);
        #endregion

        #region 支付方式
        /// <summary>
        /// 根据过滤条件获取支付方式
        /// </summary>
        /// <param name="sFilter"></param>
        /// <returns></returns>
        bool QueryPayType(string sFilter, out DataSet ds, out string error);

        /// <summary>
        /// 新增支付方式
        /// </summary>
        /// <param name="entity">支付方式信息类</param>
        bool InsertPayType(DBEntityPayType entity, out string error);

        /// <summary>
        /// 更新支付方式
        /// </summary>
        /// <param name="entity">支付方式信息类</param>
        bool UpdatePayType(DBEntityPayType entity, out string error);

        /// <summary>
        /// 删除支付方式
        /// </summary>
        /// <param name="paytype_id">支付方式ID</param>
        bool DeletePayType(int paytype_id, out string error);
        #endregion

        #region 会员充值信息

        /// <summary>
        /// 根据条件获取会员充值信息
        /// </summary>
        /// <param name="sFilter">过滤条件</param>
        /// <returns></returns>
        bool QueryCustomerPayment(string sFilter, out DataSet ds, out string error);

        /// <summary>
        /// 新增会员充值信息
        /// </summary>
        /// <param name="entity">会员充值信息类</param>
        bool InsertCustomerPayment(DBEntityCustomerPayment entity, out string error);

        /// <summary>
        /// 更新会员充值信息
        /// </summary>
        /// <param name="entity">会员充值信息类</param>
        bool UpdateCustomerPayment(DBEntityCustomerPayment entity, out string error);

        /// <summary>
        /// 删除会员充值信息
        /// </summary>
        /// <param name="payment_id">充值ID</param>
        bool DeleteCustomerPayment(int payment_id, out string error);
        #endregion
    }
}
